using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using WorldEditor.Tiles;
using Core.Graphics;
using Core.GameObjects;
using WorldEditor.Characters;
using Microsoft.Xna.Framework.Graphics;

namespace WorldEditor.ResourceManager
{
    public partial class ResourceManager : Form
    {
        GraphicsDevice _Device;

        public ResourceManager(GraphicsDevice GraphicsDevice)
        {
            _Device = GraphicsDevice;

            InitializeComponent();
        }

        protected override void OnFormClosing(FormClosingEventArgs e)
        {
            //cb.Enabled = false;
            
            base.OnFormClosing(e);
        }

        //CharacterBuilder cb;

        private void ResourceManager_Load(object sender, EventArgs e)
        {
            //cb = new CharacterBuilder();

            //cb.Location = new Point(4, 4);

            //cb.Enabled = true;

            //tpEntities.Controls.Add(cb);
        //    cav = new CharacterAllViews(TileSetCollection.GlobalCharacterTileSets[2]);

        //    cav.Location = new Point(5, 5);

        //    tpEntities.Controls.Add(cav);

        //    cav.AnimationEnabled = true;
        //}

        //private void tpEntities_Click(object sender, EventArgs e)
        //{
        //    cav.AnimationEnabled = !cav.AnimationEnabled;
        }
    }
}